<%@include file="taglib_includes.jsp" %>
<html>
<head>
<title><spring:message code="Assign.Role.College.Title"></spring:message></title>
</head>
<body>
<table  bgcolor="white" width="750" height="500" align="center" style="border-collapse: collapse;" border="1" bordercolor="#006699" >
	<tr>
		<td align="center" style="background-color: lightblue"><h3>Assign Role</h3></td>
	</tr>
	
	<tr valign="middle" align="center">
	<td align="center" valign="middle">
 		<form:form action="assignRole" method="post" commandName="assign_role">
 			<table width="650" height="350" style="border-collapse: collapse;" border="0" bordercolor="#006699" cellspacing="2" cellpadding="2">
 				<tr>
						<td width="100" align="right">User ID*</td>
						<td width="150">
						<form:select path="userId">
						<form:option value="" label="--- Select ---"/>
						<form:options items="${userIdDropDown}" />
						</form:select>
						</td>
						<td align="left">
						<form:errors path="userId" cssStyle="color:red"></form:errors> 
						</td>
					</tr>
					
					<tr>
						<td width="100" align="right">Role Name*</td>
						<td width="150">
						<form:select path="roleName">
						<form:option value="NONE" label="--- Select ---"/>
						<form:option value="D" label="Director"/>
						<form:option value="P" label="Principal"/>
						<form:option value="VP" label="Vice Principal"/>
						<form:option value="HOD" label="Head Of Dept"/>
						<form:option value="SA" label="Staff Advisor"/>
						<form:option value="NONE" label="Faculty"/>
						</form:select>
						</td>
						<td align="left">
						<form:errors path="roleName" cssStyle="color:red"></form:errors> 
						</td>
					</tr>
					
					<tr>
						<td width="150" align="right">Role Description</td>
						<td width="150">
						<form:input path="roleDescription"/></td>
						<td align="left">
						<form:errors path="roleDescription" cssStyle="color:red"></form:errors> 
						</td>
					</tr>
					
					<tr>
						<td width="100" align="right">Authority</td>
						<td width="150">
						<form:select path="authority">
						<form:option value="NONE" label="--- Select ---"/>
						<form:option value="ROLE_ADMIN" label="Full Access"/>
						<form:option value="ROLE_DEPT" label="Depertment Access"/>
						<form:option value="ROLE_BA" label="Batch Access"/>
						<form:option value="ROLE_SA" label="Student Access"/>
						<form:option value="ROLE_IBA" label="Inter Batch Access"/>
						</form:select>
						</td>
						<td align="left">
						<form:errors path="authority" cssStyle="color:red"></form:errors> 
						</td>
					</tr>
					
					<tr>
						<td colspan="3" align="center">
						<input type="submit" name="" value="Save">
						&nbsp;&nbsp;
						<input type="reset" name="" value="Reset">
						
						</td>
						
					</tr>	
						
 			</table>
 			<tr align="center">
						<td width="100" align="center"><B>
						${savedMsg}
						</B>
						</td>
						</tr>	
 		</form:form>
 		</td>
 		</tr>
</table>
</body>
</html>